package com.chenbei.common.properties;

import lombok.Data;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.stereotype.Component;

@Component
@ConfigurationProperties(prefix = "spring.redisson")
@Data
public class RedissonProperties {

    //超时时间
    private int timeout;

    //扫描间隔时间
    private int scanInterval;

    //IP地址
    private String host;

    //端口
    private Integer port;

    //密码
    private String password;

    //哨兵-master
    private String sentinelMaster;

    //哨兵节点
    private String sentinelNodes;

    //集群
    private String cluster;
}
